﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace CuaHangLego.Webform
{
    public partial class SaveImage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            foreach (string f in Request.Files.AllKeys)
            { 
                HttpPostedFile file = Request.Files[f];
                file.SaveAs(Server.MapPath(string.Format("~/img/{0}", file.FileName))); 
            }
        }
    }
}